ExternalLibraries
Overview
The collection of external, third party libraries. Use this to include and then access third party libraries for drawing or building custom visuals.
- From version: 2020.20
Properties
d3
d3: D3Libraries
External third party libraries, created to draw/render with the d3 framework.
const scale = d3.scale.scaleBand();
utils
utils: UtilsLibraries
Additional external third party libraries that are provided as utilities in the Pyramid Api.
const uniqueId = cvApi2.externalLibraries.utils.uuid();
Methods
addExternalLibraries
addExternalLibraries ( paths : string[]): void
Instantiates an external third party library into the application for drawing custom visuals.
cvApi2.externalLibraries.addExternalLibraries(["https://cdn.plot.ly/plotly-latest.min.js"]);
Plotly.newPlot(divId, data, layout, config);
Parameters
-
paths:string[]
Each string represent the url for the library source.
Returns void
This is a snippet